mgf for continuous random variable